import http from "../http";

export default{
    select:{
        name:'视频加载查询',
        url:'/api/videos',
        call: async function(params={}){
            return await http.get(this.url,params)
        }
    },
    insert:{
        name:'视频添加',
        url:'/api/videos',
        call: async function(params={}){
            return await http.post(this.url,params)
        }
    },
    update:{
        name:'视频更新',
        url:'/api/videos',
        call: async function(params={}){
            return await http.put(this.url,params)
        }
    },
    delete:{
        name:'视频删除',
        url:'/api/videos',
        call: async function(params={}){
            return await http.delete(this.url,params)
        }
    },
}

